package com.simon.webflux.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.reactive.result.view.Rendering;

@Controller
public class PageController {
    @GetMapping("/baidu")
    public Rendering render() {
        return Rendering.redirectTo("https://baidu.com").build();
    }

}
